package com.darksider.darkotlin.net.module

import com.google.gson.Gson
import dagger.Module
import dagger.Provides
import retrofit2.Converter
import retrofit2.converter.gson.GsonConverterFactory
import javax.inject.Singleton

/**
 * User: yaodong(1126220529@qq.com)
 * Date: 2017-05-26
 * Time: 11:52
 * Description: 数据转换依赖模块 @Module(includes = arrayOf(GsonModule::class)) 模块之间依赖
 * Update:
 */
@Module(includes = arrayOf(GsonModule::class))
class GsonConverterModule {
    @Singleton @Provides fun converter(gson: Gson): Converter.Factory = GsonConverterFactory.create(gson)
}